package jsyf.oa.entity.system;

import com.alibaba.fastjson.JSONObject;
import jsyf.oa.ientity.BaseEntity;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * Created by Maqiuqiu on 2018/4/24.
 */
@Entity
@Table(name = "T_SYS_TIP", schema = "oa", catalog = "")
public class TipEntity extends BaseEntity implements Serializable {

    private String content;
    private String tipType;
    private String createUserId;

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getTipType() {
        return tipType;
    }

    public void setTipType(String tipType) {
        this.tipType = tipType;
    }

    public String getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(String createUserId) {
        this.createUserId = createUserId;
    }

    @Override
    public JSONObject getJSONObject() {
        JSONObject obj = new JSONObject();
        obj.put("ID", getId());
        obj.put("CONTENT", getContent());
        obj.put("TIP_TYPE", getTipType());
        obj.put("CREATE_USER_ID", getCreateUserId());
        obj.put("CREATE_TIME", getCreateTime());
        obj.put("DEL_FLAG", getDelFlag());
        return obj;
    }

    @Override
    public String getTableName() {
        return "t_sys_tip";
    }

    @Override
    public JSONObject getJSONColumns() {
        JSONObject obj = new JSONObject();
        obj.put("ID", "id");
        obj.put("CONTENT", "content");
        obj.put("TIP_TYPE", "tipType");
        obj.put("CREATE_USER_ID", "createUserId");
        obj.put("CREATE_TIME", "createTime");
        obj.put("DEL_FLAG", "delFlag");
        return obj;
    }
}
